package com.lagou.edu.user.mapper;

import com.lagou.edu.user.entity.UserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author liangzj
 * @date 2021/6/23 22:20
 */
@Mapper
public interface UserMapper {

    Integer insert(@Param("userDO") UserDO userDO);

    UserDO selectByEmailAndPassword(@Param("email") String email, @Param("password") String password);

    UserDO selectByEmail(@Param("email") String email);

}
